from win32api import *
import os

disk = 0
disk_list = GetLogicalDriveStrings()
disk_list = disk_list.split('\x00')
disk_list.pop(-1)
print(disk_list)
pf = input('请输入要扫描的磁盘：')
for root, ds, fs in os.walk(pf):
    print('===================')
    print('根目录')
    print(root)
    print(len(root))
    print('===================')
    print('文件夹')
    print(ds)
    print(len(ds))
    print('===================')
    print('文件')
    print(fs)
    print(len(fs))
    print('===================')



